package com.cares.entity.infobird;

import java.io.Serializable;
import java.util.Date;

import com.cares.core.utils.Constant;
import com.cares.core.utils.time.JodaTime;
import com.cares.entity.base.Entity;

public class CustomerInfo extends Entity  implements Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = 4821360342138135779L;

    private String name;

    private Integer memberLevel;

    private String memberNo;

    private String acctNo;
    
    private Integer custType;
    
    private String custTypeStr;

    private Integer custSubType;

    private String sex;

    private String email;

    private String mobile;
    
    private String dependency;

    private String province;//手机归属地-省
    
    private String city;//手机归属地-市

    private String telAbbr;

    private String telephone;

    private String faxAbbr;

    private String fax;

    private String certType;

    private String certNo;

    private Date birth;
    
    private String birthDay;

    private Integer provCode;

    private Integer cityCode;

    private Integer subCityCode;

    private String zipCode;
    
    private String address;

    private String remark1;

    private String remark2;

    private String remark3;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getMemberLevel() {
        return memberLevel;
    }

    public void setMemberLevel(Integer memberLevel) {
        this.memberLevel = memberLevel;
    }

    public String getMemberNo() {
        return memberNo;
    }

    public void setMemberNo(String memberNo) {
        this.memberNo = memberNo == null ? null : memberNo.trim();
    }

    public String getAcctNo() {
        return acctNo;
    }

    public void setAcctNo(String acctNo) {
        this.acctNo = acctNo == null ? null : acctNo.trim();
    }
    
    public Integer getCustType() {
        return custType;
    }

    public void setCustType(Integer custType) {
        this.custType = custType;
    }

    public String getCustTypeStr() {
    	if(custType!=null) {
    		return Constant.getCustType(custType.toString());
    	}
		return null;
	}

	public Integer getCustSubType() {
        return custSubType;
    }

    public void setCustSubType(Integer custSubType) {
        this.custSubType = custSubType;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public String getDependency() {
		return dependency;
	}

	public void setDependency(String dependency) {
		this.dependency = dependency;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getTelAbbr() {
        return telAbbr;
    }

    public void setTelAbbr(String telAbbr) {
        this.telAbbr = telAbbr == null ? null : telAbbr.trim();
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone == null ? null : telephone.trim();
    }

    public String getFaxAbbr() {
        return faxAbbr;
    }

    public void setFaxAbbr(String faxAbbr) {
        this.faxAbbr = faxAbbr == null ? null : faxAbbr.trim();
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax == null ? null : fax.trim();
    }

    public String getCertType() {
        return certType;
    }

    public void setCertType(String certType) {
        this.certType = certType == null ? null : certType.trim();
    }

    public String getCertNo() {
        return certNo;
    }

    public void setCertNo(String certNo) {
        this.certNo = certNo == null ? null : certNo.trim();
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public String getBirthDay() {
		return JodaTime.formatDate(birth, "yyyy-MM-dd");
	}

	public void setBirthDay(String birthDay) {
		this.birthDay = birthDay;
	}

	public Integer getProvCode() {
        return provCode;
    }

    public void setProvCode(Integer provCode) {
        this.provCode = provCode;
    }

    public Integer getCityCode() {
        return cityCode;
    }

    public void setCityCode(Integer cityCode) {
        this.cityCode = cityCode;
    }

    public Integer getSubCityCode() {
        return subCityCode;
    }

    public void setSubCityCode(Integer subCityCode) {
        this.subCityCode = subCityCode;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode == null ? null : zipCode.trim();
    }

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getRemark1() {
		return remark1;
	}

	public void setRemark1(String remark1) {
		this.remark1 = remark1;
	}

	public String getRemark2() {
		return remark2;
	}

	public void setRemark2(String remark2) {
		this.remark2 = remark2;
	}

	public String getRemark3() {
		return remark3;
	}

	public void setRemark3(String remark3) {
		this.remark3 = remark3;
	}

}